package com.bjb.vr.gateway.controller;

import com.bjb.vr.common.result.BaseResult;
import com.bjb.vr.common.result.CommonResult;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 获取网关信息列表
 *
 * @author hujingbo
 * @version 1.0.0
 * @createTime 2022年03月04日 11:01
 */
@RestController
@RequestMapping("/api/gateway/v1")
public class GatewayController {

    /**
     * 获取网关信息
     *
     * @return
     */
    @RequestMapping("/info")
    public BaseResult<SecurityProperties.User> getUserInfo() {
        return CommonResult.Ok();
    }
}
